/**
 * vips Inc.
 * Copyright (c) 2016 All Rights Reserved.
 */   
package com.vip.saturn.job.console.utils;   
/**
 * 项目名称：saturn-console-core 
 * 创建时间：2016年10月11日 下午4:48:43   
 * @author yangjuanying  
 * @version 1.0   
 * @since JDK 1.7.0_05  
 * 文件名称：ContainerNodePath.java  
 * 类说明：  
 */
public class ContainerNodePath {

	public static final String $CONTAINERS_NODE_NAME = "$DCOS";

    private ContainerNodePath() {
    }
    
    public static String get$ContainerNodePath() {
        return "/" + $CONTAINERS_NODE_NAME;
    }
    
    public static String getDcosTasksNodePath() {
        return String.format("/%s/tasks", $CONTAINERS_NODE_NAME);
    }
    
    public static String getDcosTaskIdNodePath(final String taskId) {
        return String.format("%s/%s", getDcosTasksNodePath(), taskId);
    }
    
    public static String getDcosTaskConfigNodePath(final String taskId) {
        return String.format("%s/config", getDcosTaskIdNodePath(taskId));
    }

    public static String getDcosTaskScaleJobsNodePath(final String taskId) {
        return String.format("%s/scaleJobs", getDcosTaskIdNodePath(taskId));
    }

    public static String getDcosTaskScaleJobNodePath(final String taskId, final String jobName) {
        return String.format("%s/scaleJobs/%s", getDcosTaskIdNodePath(taskId), jobName);
    }

    public static String getDcosConfigTokenNodePath() {
        return String.format("%s/config/token", get$ContainerNodePath());
    }
}
  